tools/libxc: Improve the *_FIELD() macros
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 18 Jun 2014 17:18:37 +0000 (18:18 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 27 Jun 2014 13:13:22 +0000 (14:13 +0100)
commit9f378f487a879f9a459f3719b82578c781a0adf8
tree2873c0031c2aabe0b84379bc8e92e9965807aaa1
parent9d3946cd9bf854a5dffb627c21bdb5112b8a25ac
tools/libxc: Improve the *_FIELD() macros

The {GET,SET,MEMCPY,MEMSET_ARRAY}_FIELD() macros previously required
'dinfo->guest_width' to exist in scope, which is somewhat antisocial, and
makes them awkward to use in other contexts.

Update these macros to take guest width as a parameter, and in all cases pass
dinfo->guest_width.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Ian Campbell <Ian.Campbell@citrix.com>
CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxc/xc_domain_restore.c
tools/libxc/xc_domain_save.c
tools/libxc/xc_resume.c
tools/libxc/xg_save_restore.h